find_package(PkgConfig)
pkg_check_modules (AVDEVICE libavdevice)
pkg_check_modules (AVFORMAT libavformat)
pkg_check_modules (AVFILTER libavfilter)
pkg_check_modules (AVCODEC libavcodec)
pkg_check_modules (AVUTIL libavutil)
pkg_check_modules (AVSWSCALE libswscale)
pkg_check_modules (AVSWRESAMPLE libswresample)

add_executable(rtp_recv rtp_recv.cpp)
target_link_libraries(rtp_recv ${AVDEVICE_LIBRARIES})
target_link_libraries(rtp_recv ${AVFORMAT_LIBRARIES})
target_link_libraries(rtp_recv ${AVFILTER_LIBRARIES})
target_link_libraries(rtp_recv ${AVCODEC_LIBRARIES})
target_link_libraries(rtp_recv ${AVUTIL_LIBRARIES})
target_link_libraries(rtp_recv ${AVSWSCALE_LIBRARIES})
target_link_libraries(rtp_recv pthread m)
